//
//  ViewOrderAllCostTableViewCell.m
//  Youhuiju
//
//  Created by 余尚飞 on 16/9/8.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "ViewOrderAllCostTableViewCell.h"

@interface ViewOrderAllCostTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *containFreight;//含运费
@property (weak, nonatomic) IBOutlet UILabel *express;//快递
@property (weak, nonatomic) IBOutlet UILabel *allGoods;//订单商品数量
@property (weak, nonatomic) IBOutlet UILabel *allCost;//总价

@property (weak, nonatomic) IBOutlet UIButton *verifyBtn;//确认收货
@property (weak, nonatomic) IBOutlet UIButton *checkLogistics;//查看物流
@property (weak, nonatomic) IBOutlet UIButton *applicationDrawback;//申请退款


//适配
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *containFreightTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *containFreightHig;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *allGoodsTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *verifyTop;//确认收货顶上约束
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *verifyHig;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *verifyWid;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewHig;
@end

@implementation ViewOrderAllCostTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.containFreight.font = [UIFont systemFontOfSize:14 * FitH];
    self.containFreightTop.constant = 18 * FitH;
    self.containFreightHig.constant = 14 * FitH;
    
    
    self.express.font = [UIFont systemFontOfSize:14 * FitH];
    self.allGoods.font = [UIFont systemFontOfSize:14 * FitH];
    self.allGoodsTop.constant = 20 * FitH;
    
    self.allCost.font = [UIFont systemFontOfSize:14 * FitH];
    
    self.viewTop.constant = 20 * FitH;
    self.verifyTop.constant = 9 * FitH;
    self.verifyWid.constant = 80 * FitW;
    self.verifyHig.constant = 30 * FitH;
    
    self.verifyBtn.layer.cornerRadius = 4 * FitH;
    
    self.checkLogistics.layer.cornerRadius = 4 * FitH;
    self.checkLogistics.layer.borderWidth = 1 * FitH;
    self.checkLogistics.layer.borderColor = [UIColor colorWithHexString:@"ff5f7d"].CGColor;
    
    self.applicationDrawback.layer.cornerRadius = 4 * FitH;
    self.applicationDrawback.layer.borderWidth = 1 * FitH;
    self.applicationDrawback.layer.borderColor = [UIColor colorWithHexString:@"ff5f7d"].CGColor;
    
    self.viewHig.constant = 0.5 * FitH;
    
    // Initialization code
}

- (IBAction)buttonClickedAction:(UIButton *)sender {
    if (self.buttonClickedHandler)
    {
        self.buttonClickedHandler(sender.tag);
    }
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



@end
